popover: Set pointer motion mask on the popover window
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 5 Mar 2014 12:50:17 +0000 (13:50 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 5 Mar 2014 12:58:04 +0000 (13:58 +0100)
This is not necessary for the popover itself, but helps tooltips
code confine the widget lookup within the popover if the pointer
is inside it, otherwise the widget lookup may turn out wrong for
motion events, starting the tooltip widget lookup from the toplevel
window, mistakenly triggering tooltips on the natural window
descendants (ie. the widget below the popover)

https://bugzilla.gnome.org/show_bug.cgi?id=724785

gtk/gtkpopover.c

index a309bbfec8251e56766a69d95facbc0d6624d9ec..7cadf982def852d0b955b1693b414b397017ac54 100644 (file)
@@ -238,6 +238,7 @@ gtk_popover_realize (GtkWidget *widget)
   attributes.wclass = GDK_INPUT_OUTPUT;
   attributes.event_mask =
     gtk_widget_get_events (widget) |
+    GDK_POINTER_MOTION_MASK |
     GDK_BUTTON_MOTION_MASK |
     GDK_BUTTON_PRESS_MASK |
     GDK_BUTTON_RELEASE_MASK |